package com.hqd.ch03.v50.web.context;

import com.hqd.ch03.v50.context.ConfigurableApplicationContext;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;

/**
 * 可配置的WebApplicationContext
 */
public interface ConfigurableWebApplicationContext extends WebApplicationContext, ConfigurableApplicationContext {

    String APPLICATION_CONTEXT_ID_PREFIX = WebApplicationContext.class.getName() + ":";

    String SERVLET_CONFIG_BEAN_NAME = "servletConfig";

    void setServletContext(ServletContext servletContext);

    ServletConfig getServletConfig();

    void setServletConfig(ServletConfig servletConfig);

    String getNamespace();

    void setNamespace(String namespace);

    void setConfigLocation(String configLocation);

    String[] getConfigLocations();

    void setConfigLocations(String... configLocations);

}
